package edu.purdue.cs.aggr;

import java.io.Externalizable;
import java.io.Serializable;
import java.util.List;

public interface Accumulator<I extends Serializable, O extends Serializable> extends Externalizable {
	public abstract void initialize (I input);
	public abstract void addValue (I input);
	public abstract O getAccumulation ();
	public abstract void addAccumulators (List<Accumulator<I, O>> accumulator);
	public abstract String getSourceId();
  public abstract void setSourceId(String id);
}
